package cn.wind.xboot.logic.dao;

import cn.wind.xboot.logic.entity.Bank;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 银行卡 Mapper 接口
 * </p>
 *
 * @author wind
 * @since 2018-12-21
 */
public interface BankMapper extends BaseMapper<Bank> {

    Bank findByCid(Long id);

    /**
     * 获取所有银行卡列表
     * @return
     */
    @Select("SELECT DISTINCT bank FROM t_bank")
    List<Bank> getBankList();
}
